#include <windows.h>
#include "CGuildBuyMessagePacket.h"

CGuildBuyMessagePacket::CGuildBuyMessagePacket(unsigned short itemID, unsigned char newGuildQty, unsigned char quantity) {

	this->type = 0x82;
	this->size = 0x04;

	memset(this->data, 0, sizeof(data));

	memcpy(data+0x04-0x04, &itemID, 2);
	memcpy(data+0x06-0x04, &newGuildQty, 1);
	memcpy(data+0x07-0x04, &quantity, 1);

}

CGuildBuyMessagePacket::~CGuildBuyMessagePacket() {

}
